
import request from '@/utils/request'

// 查询金蝶-财务-银行列表
export function getBankList(query) {
  return request({
    url: '/heart/KingBank/list',
    method: 'get',
    params: query
  })
}


// 查询金蝶-财务-银行详细
export function getBankDetail(id) {
  return request({
    url: '/heart/KingBank/' + id,
    method: 'get'
  })
}

// 新增金蝶-财务-银行
export function addBankInfo(data) {
  return request({
    url: '/heart/KingBank',
    method: 'post',
    data: data
  })
}

// 修改金蝶-财务-银行
export function editBankInfo(data) {
  return request({
    url: '/heart/KingBank',
    method: 'put',
    data: data
  })
}

// 删除金蝶-财务-银行
export function deleteBankInfo(id) {
  return request({
    url: '/heart/KingBank/' + id,
    method: 'delete'
  })
}

// 导出金蝶-财务-银行
export function exportBankInfo(query) {
  return request({
    url: '/heart/KingBank/export',
    method: 'get',
    params: query
  })
}